import axios from 'axios'
export const order = (user) => {
  return axios({
    method: 'post',
    url: '/api/qf_hotel/Order_add',
    params: {
      checkTime: user.checkTime,
      leaveTime: user.leaveTime,
      child: user.child,
      people: user.people,
      'room.id': 1,
      'user.id': 2,
      'user.userName': user.userName
    }
  })
}

export const getOrder = (userName) => {
  return axios({
    method: 'post',
    url: `/api/qf_hotel/findByUserName?userName=${userName}`
  })
}

export const delRequist = (orderNo) => {
  return axios({
    method: 'post',
    url: `/api/qf_hotel/deleteByOrderNo?orderNo=${orderNo}`
  })
}
